package one.stand.mapper;

import one.stand.model.FinanceModel;
import one.stand.model.OrderinfoModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderinfoPublicMapper {
    Integer selectSales(@Param("goodsId") Integer goodsId);

    Integer selectGroupCount(@Param("groupId") Integer groupId, @Param("state") Integer state);

    List<OrderinfoModel> selectComanyRoyalty(Integer ordersId);

    List<Map<String, Object>> turnoverRate(Integer companyId);

    Integer selectFinanceRefund(FinanceModel model);

    List<FinanceModel> selectFinanceMall(FinanceModel model);

    Integer selectFinanceMallMoney(FinanceModel model);

    List<FinanceModel> selectOrderNumSort(FinanceModel record);

    List<FinanceModel> selectTurnoverRateSort(FinanceModel record);
}
